Fix bug #11513 with raise-frame on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Mon, 28 May 2012 17:22:40 +0000 (20:22 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 28 May 2012 17:22:40 +0000 (20:22 +0300)
commit509c3935bc33d0efeab3a4929e218ab07467386e
tree27df4fa3e9a54db7ccd36708c2b21573170c4a98
parent2e7452262e21c30dc9b22feee7f0fe0696e8a119
Fix bug #11513 with raise-frame on MS-Windows.

 src/w32term.c (my_bring_window_to_top): New function.
 (x_raise_frame): Use handle returned by DeferWindowPos, which
 could be different from the original one.  Call
 my_bring_window_to_top instead of my_set_foreground_window.
 src/w32fns.c (w32_wnd_proc): Accept and process WM_EMACS_BRINGTOTOP
 by calling BringWindowToTop.
 src/w32term.h (WM_EMACS_BRINGTOTOP): New message.
 (WM_EMACS_END): Increase by one.
src/ChangeLog
src/w32fns.c
src/w32term.c
src/w32term.h